import { starNavData } from './initData'
Page({
  data: {
    navData:starNavData,
    activeId:-1,
    changType:true
  },
  onLoad(){
    const environment = wx.getAccountInfoSync().miniProgram.envVersion ? wx.getAccountInfoSync().miniProgram.envVersion : "release";
    if(environment == "release"){
      this.setData({
        changType:false
      })
    }
  },
  handleContact: function (e) {
   
  },

  tipNavCilck(e){
    const index = e ? e.currentTarget.dataset.index : 0;
    this.setData({
      activeId:index
    })
    wx.navigateTo({
      url: '/pages/detail/detail?id=' +e.currentTarget.dataset.item.astroid,
    })
  }
  
})